<?php

namespace App\Http\Controllers;

use Illuminate\Http\Request;
use Maatwebsite\Excel\Facades\Excel;
use App\Exports;
class ExportController extends Controller
{
    //
    public function index(){

        return Excel::download(new Exports\UserExport(), 'user.xlsx');
    }
}
